<%@ page import="com.itheima.prtice.Student" %>
<%@ page import="java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生</title>
</head>
<body>
<%
    Student su=new Student("站啊",55);
    Student su2=new Student("李四",43);
    Student su3=new Student("王五",33);
    ArrayList<Student>list=new ArrayList<>();
    list.add(su);
    list.add(su2);
    list.add(su3);
%>
<table border="1"width="50%"align="center">
<%
    for (Student student : list) {

%>
    <tr>
        <td><%=student.getName()%></td>
        <td><%=student.getAge()%></td>
    </tr>
<%
    }
%>
</body>
</html>
